<?php

class PollLogForm2 extends PollLogForm
{
  public function configure()
  {
    $this->widgetSchema['contestant_id'] = new sfWidgetFormDoctrineChoice(array(
      'model' => $this->getRelatedModelName('contestant'), 
      'table_method' => 'getAreaPollFormChoiceQuery',
      'add_empty' => false
    ));
    
    $this->validatorSchema['contestant_id'] = new sfValidatorDoctrineChoice(array(
      'model' => $this->getRelatedModelName('contestant')
    ));
    
    parent::configure();
  }
}